package com.spring.springboot.controller.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author admin
 * @date 2022-04-25 16:36:16:36
 * @description feign-demo
 */
@FeignClient("mybatis-plus")
@RequestMapping("/mybatis-plus")
public interface CapitalFeign {

    /**
     * 远程调用获取资产列表
     *
     * @param pageNum  当前页数
     * @param pageSize 每页条数
     * @return object
     */
    @GetMapping(value = "/api/capital/list")
    JSONObject capitalList(@RequestParam Integer pageNum, @RequestParam Integer pageSize);

}
